package com.cn.jx.manager.form;

import com.cn.jx.common.form.BaseForm;
import com.jx.annotation.IsNotEmpty;
import com.jx.annotation.LengthRange;
import com.jx.annotation.Regular;
import com.jx.annotation.Update;
import com.jx.enumType.RegexEnum;

/**
 * <p>JobForm 岗位form类 
 * <p>主要负责页面表单提交和表格动态列输出功能
 * 
 * @author <h1>jiangxu2  2019年11月21日</h1>
 * @version v1.11.20.2019
 * @since 1.0
 * 
 */
public class JobForm extends BaseForm{
	private static final long serialVersionUID = -4246974836916757529L;

	/** <p>岗位名<p>设置为{@link String String}类型*/
	@IsNotEmpty(prompt="岗位名不能为空")
	@LengthRange(minLen=1,maxLen=20,prompt="岗位名长度不能超过20个字符")
	@Update
	private String jobName;
	
	/** <p>岗位编码<p>设置为{@link String String}类型*/
	@IsNotEmpty(prompt="岗位编码不能为空")
	@Regular(rule=RegexEnum._LETTER_NUMB,prompt="岗位编码必须是大小写英文字母或数字组合")
	@Update
	private String jobCode;
	
	/** <p>岗位描述<p>设置为{@link String String}类型*/
	@Update
	private String jobDescribe;
	
	/** <p>排序<p>设置为{@link String String}类型*/
	@Update
	private Integer sort;
	
	
	/** <p>{@link Integer Integer}<p>getSort()*/
	public Integer getSort() {
		return sort;
	}
	/** <p>{@link String String}<p>getJobName()*/
	public String getJobName() {
		return jobName;
	}
	/** <p>{@link String String}<p>getJobCode()*/
	public String getJobCode() {
		return jobCode;
	}
	/** <p>{@link String String}<p>getJobDescribe()*/
	public String getJobDescribe() {
		return jobDescribe;
	}

	/** <p>setSort({@link Integer sort})*/
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	/** <p>setJobName({@link String jobName})*/
	public void setJobName(String jobName) {
		this.jobName = jobName;
	}
	/** <p>setJobCode({@link String jobCode})*/
	public void setJobCode(String jobCode) {
		this.jobCode = jobCode;
	}
	/** <p>setJobDescribe({@link String jobDescribe})*/
	public void setJobDescribe(String jobDescribe) {
		this.jobDescribe = jobDescribe;
	}
}
